package com.tairanchina.md.meeting.entity;

import java.util.ArrayList;
import java.util.List;

public class YearMeetingProgramExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public YearMeetingProgramExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    /**
     * This class was generated by MyBatis Generator.
     * This class corresponds to the database table year_meeting_program
     *
     * @mbggenerated Tue Jan 03 13:41:35 CST 2017
     */
    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andProgramIdIsNull() {
            addCriterion("program_id is null");
            return (Criteria) this;
        }

        public Criteria andProgramIdIsNotNull() {
            addCriterion("program_id is not null");
            return (Criteria) this;
        }

        public Criteria andProgramIdEqualTo(String value) {
            addCriterion("program_id =", value, "programId");
            return (Criteria) this;
        }

        public Criteria andProgramIdNotEqualTo(String value) {
            addCriterion("program_id <>", value, "programId");
            return (Criteria) this;
        }

        public Criteria andProgramIdGreaterThan(String value) {
            addCriterion("program_id >", value, "programId");
            return (Criteria) this;
        }

        public Criteria andProgramIdGreaterThanOrEqualTo(String value) {
            addCriterion("program_id >=", value, "programId");
            return (Criteria) this;
        }

        public Criteria andProgramIdLessThan(String value) {
            addCriterion("program_id <", value, "programId");
            return (Criteria) this;
        }

        public Criteria andProgramIdLessThanOrEqualTo(String value) {
            addCriterion("program_id <=", value, "programId");
            return (Criteria) this;
        }

        public Criteria andProgramIdLike(String value) {
            addCriterion("program_id like", value, "programId");
            return (Criteria) this;
        }

        public Criteria andProgramIdNotLike(String value) {
            addCriterion("program_id not like", value, "programId");
            return (Criteria) this;
        }

        public Criteria andProgramIdIn(List<String> values) {
            addCriterion("program_id in", values, "programId");
            return (Criteria) this;
        }

        public Criteria andProgramIdNotIn(List<String> values) {
            addCriterion("program_id not in", values, "programId");
            return (Criteria) this;
        }

        public Criteria andProgramIdBetween(String value1, String value2) {
            addCriterion("program_id between", value1, value2, "programId");
            return (Criteria) this;
        }

        public Criteria andProgramIdNotBetween(String value1, String value2) {
            addCriterion("program_id not between", value1, value2, "programId");
            return (Criteria) this;
        }

        public Criteria andProgramOrderIsNull() {
            addCriterion("program_order is null");
            return (Criteria) this;
        }

        public Criteria andProgramOrderIsNotNull() {
            addCriterion("program_order is not null");
            return (Criteria) this;
        }

        public Criteria andProgramOrderEqualTo(Integer value) {
            addCriterion("program_order =", value, "programOrder");
            return (Criteria) this;
        }

        public Criteria andProgramOrderNotEqualTo(Integer value) {
            addCriterion("program_order <>", value, "programOrder");
            return (Criteria) this;
        }

        public Criteria andProgramOrderGreaterThan(Integer value) {
            addCriterion("program_order >", value, "programOrder");
            return (Criteria) this;
        }

        public Criteria andProgramOrderGreaterThanOrEqualTo(Integer value) {
            addCriterion("program_order >=", value, "programOrder");
            return (Criteria) this;
        }

        public Criteria andProgramOrderLessThan(Integer value) {
            addCriterion("program_order <", value, "programOrder");
            return (Criteria) this;
        }

        public Criteria andProgramOrderLessThanOrEqualTo(Integer value) {
            addCriterion("program_order <=", value, "programOrder");
            return (Criteria) this;
        }

        public Criteria andProgramOrderIn(List<Integer> values) {
            addCriterion("program_order in", values, "programOrder");
            return (Criteria) this;
        }

        public Criteria andProgramOrderNotIn(List<Integer> values) {
            addCriterion("program_order not in", values, "programOrder");
            return (Criteria) this;
        }

        public Criteria andProgramOrderBetween(Integer value1, Integer value2) {
            addCriterion("program_order between", value1, value2, "programOrder");
            return (Criteria) this;
        }

        public Criteria andProgramOrderNotBetween(Integer value1, Integer value2) {
            addCriterion("program_order not between", value1, value2, "programOrder");
            return (Criteria) this;
        }

        public Criteria andProgramNameIsNull() {
            addCriterion("program_name is null");
            return (Criteria) this;
        }

        public Criteria andProgramNameIsNotNull() {
            addCriterion("program_name is not null");
            return (Criteria) this;
        }

        public Criteria andProgramNameEqualTo(String value) {
            addCriterion("program_name =", value, "programName");
            return (Criteria) this;
        }

        public Criteria andProgramNameNotEqualTo(String value) {
            addCriterion("program_name <>", value, "programName");
            return (Criteria) this;
        }

        public Criteria andProgramNameGreaterThan(String value) {
            addCriterion("program_name >", value, "programName");
            return (Criteria) this;
        }

        public Criteria andProgramNameGreaterThanOrEqualTo(String value) {
            addCriterion("program_name >=", value, "programName");
            return (Criteria) this;
        }

        public Criteria andProgramNameLessThan(String value) {
            addCriterion("program_name <", value, "programName");
            return (Criteria) this;
        }

        public Criteria andProgramNameLessThanOrEqualTo(String value) {
            addCriterion("program_name <=", value, "programName");
            return (Criteria) this;
        }

        public Criteria andProgramNameLike(String value) {
            addCriterion("program_name like", value, "programName");
            return (Criteria) this;
        }

        public Criteria andProgramNameNotLike(String value) {
            addCriterion("program_name not like", value, "programName");
            return (Criteria) this;
        }

        public Criteria andProgramNameIn(List<String> values) {
            addCriterion("program_name in", values, "programName");
            return (Criteria) this;
        }

        public Criteria andProgramNameNotIn(List<String> values) {
            addCriterion("program_name not in", values, "programName");
            return (Criteria) this;
        }

        public Criteria andProgramNameBetween(String value1, String value2) {
            addCriterion("program_name between", value1, value2, "programName");
            return (Criteria) this;
        }

        public Criteria andProgramNameNotBetween(String value1, String value2) {
            addCriterion("program_name not between", value1, value2, "programName");
            return (Criteria) this;
        }

        public Criteria andProgramPicIsNull() {
            addCriterion("program_pic is null");
            return (Criteria) this;
        }

        public Criteria andProgramPicIsNotNull() {
            addCriterion("program_pic is not null");
            return (Criteria) this;
        }

        public Criteria andProgramPicEqualTo(String value) {
            addCriterion("program_pic =", value, "programPic");
            return (Criteria) this;
        }

        public Criteria andProgramPicNotEqualTo(String value) {
            addCriterion("program_pic <>", value, "programPic");
            return (Criteria) this;
        }

        public Criteria andProgramPicGreaterThan(String value) {
            addCriterion("program_pic >", value, "programPic");
            return (Criteria) this;
        }

        public Criteria andProgramPicGreaterThanOrEqualTo(String value) {
            addCriterion("program_pic >=", value, "programPic");
            return (Criteria) this;
        }

        public Criteria andProgramPicLessThan(String value) {
            addCriterion("program_pic <", value, "programPic");
            return (Criteria) this;
        }

        public Criteria andProgramPicLessThanOrEqualTo(String value) {
            addCriterion("program_pic <=", value, "programPic");
            return (Criteria) this;
        }

        public Criteria andProgramPicLike(String value) {
            addCriterion("program_pic like", value, "programPic");
            return (Criteria) this;
        }

        public Criteria andProgramPicNotLike(String value) {
            addCriterion("program_pic not like", value, "programPic");
            return (Criteria) this;
        }

        public Criteria andProgramPicIn(List<String> values) {
            addCriterion("program_pic in", values, "programPic");
            return (Criteria) this;
        }

        public Criteria andProgramPicNotIn(List<String> values) {
            addCriterion("program_pic not in", values, "programPic");
            return (Criteria) this;
        }

        public Criteria andProgramPicBetween(String value1, String value2) {
            addCriterion("program_pic between", value1, value2, "programPic");
            return (Criteria) this;
        }

        public Criteria andProgramPicNotBetween(String value1, String value2) {
            addCriterion("program_pic not between", value1, value2, "programPic");
            return (Criteria) this;
        }

        public Criteria andProgramDescIsNull() {
            addCriterion("program_desc is null");
            return (Criteria) this;
        }

        public Criteria andProgramDescIsNotNull() {
            addCriterion("program_desc is not null");
            return (Criteria) this;
        }

        public Criteria andProgramDescEqualTo(String value) {
            addCriterion("program_desc =", value, "programDesc");
            return (Criteria) this;
        }

        public Criteria andProgramDescNotEqualTo(String value) {
            addCriterion("program_desc <>", value, "programDesc");
            return (Criteria) this;
        }

        public Criteria andProgramDescGreaterThan(String value) {
            addCriterion("program_desc >", value, "programDesc");
            return (Criteria) this;
        }

        public Criteria andProgramDescGreaterThanOrEqualTo(String value) {
            addCriterion("program_desc >=", value, "programDesc");
            return (Criteria) this;
        }

        public Criteria andProgramDescLessThan(String value) {
            addCriterion("program_desc <", value, "programDesc");
            return (Criteria) this;
        }

        public Criteria andProgramDescLessThanOrEqualTo(String value) {
            addCriterion("program_desc <=", value, "programDesc");
            return (Criteria) this;
        }

        public Criteria andProgramDescLike(String value) {
            addCriterion("program_desc like", value, "programDesc");
            return (Criteria) this;
        }

        public Criteria andProgramDescNotLike(String value) {
            addCriterion("program_desc not like", value, "programDesc");
            return (Criteria) this;
        }

        public Criteria andProgramDescIn(List<String> values) {
            addCriterion("program_desc in", values, "programDesc");
            return (Criteria) this;
        }

        public Criteria andProgramDescNotIn(List<String> values) {
            addCriterion("program_desc not in", values, "programDesc");
            return (Criteria) this;
        }

        public Criteria andProgramDescBetween(String value1, String value2) {
            addCriterion("program_desc between", value1, value2, "programDesc");
            return (Criteria) this;
        }

        public Criteria andProgramDescNotBetween(String value1, String value2) {
            addCriterion("program_desc not between", value1, value2, "programDesc");
            return (Criteria) this;
        }

        public Criteria andLikeNumIsNull() {
            addCriterion("like_num is null");
            return (Criteria) this;
        }

        public Criteria andLikeNumIsNotNull() {
            addCriterion("like_num is not null");
            return (Criteria) this;
        }

        public Criteria andLikeNumEqualTo(Integer value) {
            addCriterion("like_num =", value, "likeNum");
            return (Criteria) this;
        }

        public Criteria andLikeNumNotEqualTo(Integer value) {
            addCriterion("like_num <>", value, "likeNum");
            return (Criteria) this;
        }

        public Criteria andLikeNumGreaterThan(Integer value) {
            addCriterion("like_num >", value, "likeNum");
            return (Criteria) this;
        }

        public Criteria andLikeNumGreaterThanOrEqualTo(Integer value) {
            addCriterion("like_num >=", value, "likeNum");
            return (Criteria) this;
        }

        public Criteria andLikeNumLessThan(Integer value) {
            addCriterion("like_num <", value, "likeNum");
            return (Criteria) this;
        }

        public Criteria andLikeNumLessThanOrEqualTo(Integer value) {
            addCriterion("like_num <=", value, "likeNum");
            return (Criteria) this;
        }

        public Criteria andLikeNumIn(List<Integer> values) {
            addCriterion("like_num in", values, "likeNum");
            return (Criteria) this;
        }

        public Criteria andLikeNumNotIn(List<Integer> values) {
            addCriterion("like_num not in", values, "likeNum");
            return (Criteria) this;
        }

        public Criteria andLikeNumBetween(Integer value1, Integer value2) {
            addCriterion("like_num between", value1, value2, "likeNum");
            return (Criteria) this;
        }

        public Criteria andLikeNumNotBetween(Integer value1, Integer value2) {
            addCriterion("like_num not between", value1, value2, "likeNum");
            return (Criteria) this;
        }

        public Criteria andTipMoneyIsNull() {
            addCriterion("tip_money is null");
            return (Criteria) this;
        }

        public Criteria andTipMoneyIsNotNull() {
            addCriterion("tip_money is not null");
            return (Criteria) this;
        }

        public Criteria andTipMoneyEqualTo(Double value) {
            addCriterion("tip_money =", value, "tipMoney");
            return (Criteria) this;
        }

        public Criteria andTipMoneyNotEqualTo(Double value) {
            addCriterion("tip_money <>", value, "tipMoney");
            return (Criteria) this;
        }

        public Criteria andTipMoneyGreaterThan(Double value) {
            addCriterion("tip_money >", value, "tipMoney");
            return (Criteria) this;
        }

        public Criteria andTipMoneyGreaterThanOrEqualTo(Double value) {
            addCriterion("tip_money >=", value, "tipMoney");
            return (Criteria) this;
        }

        public Criteria andTipMoneyLessThan(Double value) {
            addCriterion("tip_money <", value, "tipMoney");
            return (Criteria) this;
        }

        public Criteria andTipMoneyLessThanOrEqualTo(Double value) {
            addCriterion("tip_money <=", value, "tipMoney");
            return (Criteria) this;
        }

        public Criteria andTipMoneyIn(List<Double> values) {
            addCriterion("tip_money in", values, "tipMoney");
            return (Criteria) this;
        }

        public Criteria andTipMoneyNotIn(List<Double> values) {
            addCriterion("tip_money not in", values, "tipMoney");
            return (Criteria) this;
        }

        public Criteria andTipMoneyBetween(Double value1, Double value2) {
            addCriterion("tip_money between", value1, value2, "tipMoney");
            return (Criteria) this;
        }

        public Criteria andTipMoneyNotBetween(Double value1, Double value2) {
            addCriterion("tip_money not between", value1, value2, "tipMoney");
            return (Criteria) this;
        }
    }

    /**
     * This class was generated by MyBatis Generator.
     * This class corresponds to the database table year_meeting_program
     *
     * @mbggenerated do_not_delete_during_merge Tue Jan 03 13:41:35 CST 2017
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    /**
     * This class was generated by MyBatis Generator.
     * This class corresponds to the database table year_meeting_program
     *
     * @mbggenerated Tue Jan 03 13:41:35 CST 2017
     */
    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}